package com.project.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.Table;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @author 
 */
@Data
@ApiModel(value = "回收品类信息")
@TableName(value = "cms_recovery_type")
@Table(name = "cms_recovery_type", comment = "回收品类信息")
public class CmsRecoveryType implements Serializable {
    /**
     * 回收品类ID
     */
    @TableId
    @ApiModelProperty(value = "回收类型ID")
    @Column(type= MySqlTypeConstant.BIGINT, comment = "回收类型ID", length = 11, isKey = true, isAutoIncrement = true,isNull = false)
    private Long recoveryTypeId;

    /**
     * 上级ID
     */
    @ApiModelProperty(value = "上级ID")
    @Column(comment = "上级ID")
    private Long parentId;

    /**
     * 类型名称
     */
    @ApiModelProperty(value = "类型名称")
    @Column(comment = "类型名称")
    private String typeName;

    /**
     * 类型图片
     */
    @ApiModelProperty(value = "类型图片")
    @Column(comment = "类型图片")
    private String typeImg;

    /**
     * 价格
     */
    @ApiModelProperty(value = "价格")
    @Column(comment = "价格", defaultValue = "0.00", type = MySqlTypeConstant.DECIMAL, length = 18, decimalLength = 2)
    private BigDecimal price;

    /**
     * 单位
     */
    @ApiModelProperty(value = "单位")
    @Column(comment = "单位")
    private String unit;

    /**
     * 品类介绍
     */
    @ApiModelProperty(value = "品类介绍")
    @Column(comment = "品类介绍")
    private String introduction;

    /**
     * 排序
     */
    @ApiModelProperty(value = "排序（越大越靠前）")
    @Column(comment = "排序（越大越靠前）")
    private Integer sort;

    /**
     * 创建人
     */
    @ApiModelProperty(value = "创建人")
    @Column(comment = "创建人")
    private Long createUser;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    @Column(comment = "创建时间", type = MySqlTypeConstant.DATETIME)
    private Date createTime;

    /**
     * 修改人
     */
    @ApiModelProperty(value = "修改人")
    @Column(comment = "修改人")
    private Long updateUser;

    /**
     * 修改时间
     */
    @ApiModelProperty(value = "修改时间")
    @Column(comment = "修改时间", type = MySqlTypeConstant.TIMESTAMP)
    private Date updateTime;

    /**
     * 删除标志（-1:删除,1:正常）
     */
    @ApiModelProperty(value = "删除标志（-1:删除,1:正常）")
     @Column(comment = "删除标志（-1:删除,1:正常）", defaultValue = "1")
    private Integer status;

    private static final long serialVersionUID = 1L;


}